package com.xing.libao.controller;

import com.xing.libao.dao.CodeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

/**
 * Created by Administrator on 2015/3/18 0018.
 */
@Controller
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public class LiBaoController {
    @Autowired
    CodeDao codeDao;

    @GET
    @Path("basic")
    public String getArzon(@QueryParam("id") int id) {
        String s = "fdsfds";
        return s + id;
    }
}
